# write by hasaki
# first edit on 2019/03/27
# last change on 2019/03/27
# tushare 数据接口
# tushare.pro : https://tushare.pro/
# tushare : http://tushare.org/index.html

import os
import sysy
from datetime import datetime

class TushareApi:
    def __init__(self):
        '''tushare数据接口的再封装'''
        self.token=''                                        # tushare.pro的token

        self._activate=False                                 # 是否启动
    
    # ---------------------------------------------------------------------------
    # 外部传入部分
    def setting(self,token):
        self.token=token
    
    # ---------------------------------------------------------------------------
    # tushare的功能

    # ---------------------------------------------------------------------------
    # 启动部分
    def start(self):
        self._activate=True
    
    def stop(self):
        self._activate=False
    
    def run(self):
        '''跑起来'''
        pass